import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
// export default
 defineFakeRoute([
    {
        url: "/system/system/v2/family/familys",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "ok",
                "result": {
                    "data": [{
                        "id": "1",
                        "userId": 0,
                        "userName": "22",
                        "familyName": "22",
                        "city": [],
                        "address": "222",
                        "lat": "103.979246",
                        "lang": "30.68538"
                    }],
                    "total": 1
                }
            }
        }
    }, {
        url: "/system/system/v2/family/family",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "ok",
                "result": {
                    "id": "1",
                    "userId": 0,
                    "userName": "22",
                    "familyName": "22",
                    "city": [],
                    "address": "22",
                    "lat": "103.979246",
                    "lang": "30.68538"
                }
            }
        }
    }, {
        url: "/system/system/v2/family/family",
        method: "delete",
        response: () => {
            return {
                "code": 200,
                "msg": "删除成功",
                "result": null
            }
        }
    }, {
        url: "/system/system/v2/family/family",
        method: "put",
        response: () => {
            return {
                "code": 200,
                "msg": "修改成功",
                "result": null
            }
        }
    }, {
        url: "/system/system/v2/family/family",
        method: "post",
        response: () => {
            return {
                "code": 200,
                "msg": "添加成功",
                "result": null
            }
        }
    },
]);